package com.example.creditapi;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: vince_zww
 * @date: 2020/7/28 19:25
 * @desceription:
 */
@RequestMapping("/credit")
public interface CreditApi {
    @RequestMapping(value = "/add/{userId}/{credit}",method = RequestMethod.PUT)
    String add(@PathVariable("userId") Long userId,
               @PathVariable("credit") Long credit);
}
